package cn.x.utils;

import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
/**
 * @author a tester
 * @date 2021/5/16
 */
public class RandomListElement {
    public static <T> T randomListElement(List<T> list){
        return list.get(ThreadLocalRandom.current().nextInt(list.size()));
    }
}
